﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Itech_Run.Domain.Shared.Base;

namespace Itech_Run.Sys.Domain.Entity
{

    public partial class Sys_Role: CustomAggregateRoot<string>
    {

        [Required]
        [StringLength(50)]
        public string Name { get; set; }

        public bool IsActive { get; set; }

        [StringLength(200)]
        public string? Description { get; set; }

        public virtual ICollection<Sys_RoleModule> Sys_RoleModule { get; } = new HashSet<Sys_RoleModule>();

        public virtual ICollection<Sys_RoleModuleButton> Sys_RoleModuleButton { get; } = new HashSet<Sys_RoleModuleButton>();

        public virtual ICollection<Sys_UserRole> Sys_UserRole { get; } = new HashSet<Sys_UserRole>();

    }
}
